<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="http://coding.imweb.io/demo/reset.css">
	<title>grid 布局实例</title>
	<style type="text/css">
		html,body{
			height: 100%;
		}
		.grid{
			height: 100%;
			display: grid;
			grid-template-columns: 140px 140px 140px 140px 140px 140px;
			grid-template-rows: 140px 140px 140px;
			grid-gap: 20px;
			justify-content: center;
			align-content: center;
			background: #efefef;
		}
		.item{
			background: #ccc;
		}
		.item:nth-child(1),
		.item:nth-child(5){
			grid-column: 1 / 3;
		}

		.item:nth-child(2){
			grid-column: 3 / 5;
			grid-row: 1 / 3;
			background-size: 220px auto;
		}
		.item:nth-child(7){
			grid-column: 6;
			grid-row: 2 / 4;
		}
		.item:nth-child(9){
			grid-column: 2 / 4;
		}
	</style>
</head>
<body>
	<ul class="grid">
		<li class="item">1</li>
		<li class="item">2</li>
		<li class="item">3</li>
		<li class="item">4</li>
		<li class="item">5</li>
		<li class="item">6</li>
		<li class="item">7</li>
		<li class="item">8</li>
		<li class="item">9</li>
		<li class="item">10</li>
		<li class="item">11</li>
	</ul>
</body>
</html>